package com.smart.manager.pop.entities.body;


import com.smart.common.entities.core.BaseSearch;
import com.smart.manager.pop.entities.enums.CDKState;
import com.smart.manager.pop.entities.enums.ExchangeKind;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 *  客户经理表单
 *
 * @author Administrator
 * @date 2022/10/31
 */

public class RPopExchange {


    /**
     * 支付订单搜索条件
     *
     * @author xiaxuqiu
     * @date 2022/10/17
     */
    @Data
    @EqualsAndHashCode(callSuper = true)
    @ApiModel("RDisManager1")
    public static class SearchBody extends BaseSearch {


        @ApiModelProperty(value = "兑换码")
        private String redeemCodes;

        @ApiModelProperty(value = "状态")
        private CDKState state;

        @ApiModelProperty(value = "状态")
        private ExchangeKind kind;
    }

    @Data
    @ApiModel("GenerationBody3")
    public static class GenerationBody implements Serializable {

        @ApiModelProperty(value = "使用方式")
        private ExchangeKind kind;

        @ApiModelProperty(value = "比例/数量")
        private BigDecimal proportion;

        @ApiModelProperty(value = "包含猪仔")
        private String pigGoodsCode;

        @ApiModelProperty(value = "卖猪提成百分比")
        private Integer months;

        @ApiModelProperty(value = "数量")
        @Min(value = 0,message = "生成数量不能小于0")
        @Max(value = 500,message = "单次生成数量不能大于500")
        @NotNull(message = "生成的数量不能为空")
        private Integer number;



    }




}
